package com.dongdongshop.service.imp;

import com.alibaba.dubbo.config.annotation.Service;
import com.dongdongshop.mapper.TbUserMapper;
import com.dongdongshop.pojo.TbUser;
import com.dongdongshop.service.UserService;

import javax.annotation.Resource;

@Service
@org.springframework.stereotype.Service
public class UserServiceImpl implements UserService {
    @Resource
    private TbUserMapper tbUserMapper;

    @Override
    public Integer register(TbUser t) {
        return tbUserMapper.insertSelective(t);
    }

    @Override
    public TbUser getById(String username) {
        return tbUserMapper.getById(username);
    }
}
